package com.bestcem.xm.user.grpc.service.param;

import com.bestcem.xm.common.core.constant.RegTypes;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;


/**
 * 开放平台的层级树更新参数
 *
 * @author wangyunyun <yunyun.wang@idiaoyan.com>
 * @version v1.0
 * @date 2022/4/21 10:47
 */
@Getter
@Setter
public class OpenGroupTreeByAsyncParam {
    /**
     * 组织id
     */
    @NotBlank(message = "4;org_id cannot be blank")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "5;org_id format error")
    private String orgId;

    /**
     * 组织层级文件地址
     */
    @NotBlank(message = "4;group_file_path cannot be blank")
    private String groupFilePath;

    /**
     * 组织层级文件地址
     */
    @NotNull(message = "4;group_total cannot be null")
    private Integer groupTotal;

    /**
     * 消息回调参数
     */
    private String callbackParam;
}
